<template>
  <div class="hello">
    <TreeCs :data="data" />
  </div>
</template>

<script>
import TreeCs from "./vTree.vue";
export default {
  name: "HelloWorld",
  components: { TreeCs },
  props: {
    msg: String,
  },
  data: function () {
    return {
      data: [
        {
          name: "111111111",
          children: [
            {
              name: "222222222",
              children: [
                {
                  name: "333333333",
                },
                {
                  name: "33333332",
                },
                {
                  name: "33333333331",
                },
                {
                  name: "33212233",
                },
                {
                  name: "333333331111",
                },
              ],
            },
            {
              name: "22333",
            },
            {
              name: "22444444",
            },
          ],
        },
        {
          name: "0222222",
          children: [
            {
              name: "03333333",
            },
            {
              name: "0000044",
              children: [],
            },
          ],
        },
        {
          name: "99999",
        },
      ],
    };
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
.hello{
  background: #42b983;
}
</style>
